package com.atguigu.cloud.apis;

import com.atguigu.cloud.rest.ResultData;
import com.atguigu.cloud.rest.ReturnCodeEnum;
import org.springframework.stereotype.Component;

/**
 * @author HanYiMing
 * @description
 * @date 2024/3/26
 * @lastEditDate 2024/3/26
 * @lastEditAuthor
 * @lastDescription
 */
@Component
public class PayFeignSentinelApiFallBack implements PayFeignSentinelApi{
    @Override
    public ResultData getPayByOrderNo(String orderNo) {
        return ResultData.fail(ReturnCodeEnum.RC500.getCode(), "对方服务宕机或不可用，FallBack服务降级");
    }
}
